package com.pi.reservaCita2.server;

import java.sql.*;

class Pruebapostgres{
public static void main(String[] args) throws SQLException, ClassNotFoundException
{
	
	String d=" \"Ubigeo\" ";
	//ResultSet datas = null;
	//Integer data=Modelo.getInstance().getData("select * from "+ d);
	 //data.toString();
	 
	 //System.out.println(data.toString());
	 //while (data.next()){
	//	 System.out.println(data);
	 //}
	
	//Modelo.getInstance().getData("edson");
	
	
	
/*String driver = "org.postgresql.Driver";
String connectString = "jdbc:postgresql://127.0.0.1:5432/reservadb";
String user = "postgres";
String password = "cluster3";

try{
Class.forName(driver);
Connection con = DriverManager.getConnection(connectString, user , password);
Statement stmt = con.createStatement();
String tabla = " \"Ubigeo\"";
ResultSet rs = stmt.executeQuery("SELECT * FROM"+tabla );

while (rs.next()){
System.out.println(rs.getString("nombre"));
}

stmt.close();
con.close();

}

catch ( Exception e ){
System.out.println(e.getMessage()+"error de conexion");
}*/
}
	
	
	
}